﻿namespace LxCFD
{
    public class MaterialLib
    {
        public MaterialData GetDefaultMaterial(PhysicalTypes physicalType)
        {
            switch (physicalType)
            {
                case PhysicalTypes.Solid:
                    return new MaterialData()
                    {
                        Name = "铝",
                        ConstDensity = new Value1Const.Double(2700),
                        SpecificHeat = new Value1Const.Double(900),
                        ThermalConductivity = new Value1Const.Double(200),
                    };
                case PhysicalTypes.Fluid:
                    return new MaterialData()
                    {
                        Name = "空气",
                        ConstDensity = new Value1Const.Double(1.2),
                        ThermalConductivity = new Value1Const.Double(0.026),
                        SpecificHeat = new Value1Const.Double(1000),
                        Viscosity = new Value1Const.Double(1.8e-5),
                        ThermalExpansionCoefficent = 0.0033,
                    };
                default:
                    return null;
            }
        }
    }
}
